﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var Data = Jxstar.findComboData('');

	var cols = [
	{col:{header:'供应商编号', width:100, sortable:true, hidden:true}, field:{name:'pur_provider__provider_code',type:'string'}},
	{col:{header:'供应商名称', width:190, sortable:true}, field:{name:'pur_provider__provider_name',type:'string'}},
	{col:{header:'地址', width:100, sortable:true}, field:{name:'pur_provider__address',type:'string'}},
	{col:{header:'联系人', width:100, sortable:true}, field:{name:'pur_provider__business_rep',type:'string'}},
	{col:{header:'联系电话', width:100, sortable:true}, field:{name:'pur_provider__rep_phone',type:'string'}},
	{col:{header:'是否合格', width:100, sortable:true, align:'center',
		editable:true,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: Data
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: Data[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < Data.length; i++) {
				if (Data[i][0] == value)
					return Data[i][1];
			}
		}}, field:{name:'pur_provider__manage_status',type:'string'}},
	{col:{header:'是否发售标书', width:100, sortable:true}, field:{name:'pur_provider__isfilesale',type:'string'}},
	{col:{header:'采购单ID', width:100, sortable:true, hidden:true}, field:{name:'pur_provider__apply_id',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'pur_provider__pur_provid',type:'string'}},
	{col:{header:'供应商ID', width:100, sortable:true, hidden:true}, field:{name:'pur_provider__provider_id',type:'string'}},
	{col:{header:'是否中标', width:100, sortable:true}, field:{name:'pur_provider__isbid',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'bidprovider_sel'
	};
	
	
		
	return new Jxstar.GridNode(config);
}